package cn.edu.zjut;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @description:
 * @author:ZhouDan
 * @date: 2020/5/24
 * @version: 1.0
 */
@SpringBootApplication
@EnableJpaRepositories(basePackages = {"cn.edu.zjut"})
public class CampServerAppliaction extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(CampServerAppliaction.class);
    }
    public static void main(String[] args) {
        SpringApplication.run(CampServerAppliaction.class, args);
    }
}
